package practica2;

public abstract class CuaImpl implements Cua {

	protected int capacitat, num_elements;
	
	public abstract Object get();

	public boolean isEmpty() { return num_elements <= 0; }

	public boolean isFull() { return num_elements >= capacitat; }

	public abstract void put(Object valor);

	public int size() { return capacitat; }

}
